import React, { Context } from 'react'
import { messageSettingsContextType } from './interface/interface'

export const createContext = <T extends object>(defaultValue: T): Context<T> => React.createContext(defaultValue)

export const messageSettingsContext = createContext<messageSettingsContextType>({})
